package UCM;

import Views.ViewDisplayBuyTicket;

/**
 *
 * @author Joshua King
 */
public class UCDisplayBuyTicket implements UCController {
    private ViewDisplayBuyTicket view;

    /**
     * Initialises the view.
     * @param view
     */
    public UCDisplayBuyTicket(ViewDisplayBuyTicket view) {
        this.view = view;
    }

    /**
     * Precondition: user is logged in as user
     * 1. Users clicks on the buy ticket button.
     * 2. System displays buy ticket view.
     * Postcondition: user is on buy ticket page.
     */
    public void run() {
        view.setBuyTicketVisible();
    }
}
